from flask import Blueprint,jsonify

from services.product_service import ProductService
from services.swiper_service import SwiperService


api_bp = Blueprint('api', __name__)



@api_bp.route('/swipers', methods=['GET'])
def get_swipers():
    items = SwiperService.get_swipers_for_api()
    return jsonify(items)
@api_bp.route('/products', methods=['GET'])
def get_products():
    # items = ProductService.get_products_for_api()
    data = ProductService.list(1, 99)
    return jsonify(data)